package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Member;
import com.itheima.pojo.Template;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TemplateDao {

    List<Template> findAll();

    Page<Template> findPage(@Param("queryString") String queryString);

   Integer findByfileNumber(Template template);

    Integer add(Template template);

    Integer setTemplateAndMember(@Param("template_id")Integer templateId, @Param("member_id") Integer memberId);

    Template findById(@Param("id")int id);

    List<Integer> findMemberIdsByTemplateId(@Param("id")int id);

    Integer update(Template template);

    Integer deleteMembersByTemplates(@Param("id") int id);

    Integer delete(@Param("id") int id);


   /* Member findMember(Long fileNumber);*/

}
